﻿using System.IO;
using System.Text;
using System.Text.RegularExpressions;

namespace Flowerlet
{
    public class Lexer
    {
        protected static readonly Regex PatternKeywords;
        protected static readonly Regex PatternString = new Regex("");
        protected static readonly Regex PatternInteger = new Regex("");

        static Lexer()  
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < Environment.Keywords.Length - 1; i++)
            {
                sb.Append(Environment.Keywords[i]);
                sb.Append('|');
            }
            sb.Append(Environment.Keywords[Environment.Keywords.Length - 1]);
            PatternKeywords = new Regex(sb.ToString());
        }

        protected readonly StringReader Reader;

        public Lexer(StringReader reader)
        {
            Reader = reader;

        }

        public void Parse()
        {

        }
    }
}
